<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="my" uri="/WEB-INF/mytag/seleccts.tld"%>
    <%@ taglib prefix="b" uri="/WEB-INF/mytag/buttons.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>code</title>
<jsp:include page="/pages/common.jsp" />
<script type="text/javascript" src="/XYL/static/project/dictionary/dictionarydetail.js"></script>
<script type="text/javascript" src="/XYL/static/project/dictionary/dictionary.js"></script>

<style type="text/css">
	body{
		padding-top: 10px;
		padding-left:30px;
		padding-right:10px;
	}

</style>
</head>

<body>
	<div class="easyui-layout" id="fromDiv">
		<form id="addForm" method="post">
			<input  type="hidden" name="id">
			<table>
				<tr>
					<td><label for="code">编码:</label></td>
					<td><input class="easyui-validatebox" type="text" name="code" required="true"></input></td>
					<td><label for="descript">名称:</label></td>
					<td><input class="easyui-validatebox" type="text" name="descript" required="true"></input></td>
					<td><input type="submit" class="btn btn-myself" value="提交" id="btn-add-save"></input></td>
				</tr>
			</table>
		</form>
	</div>
	<div class="btn-toolbar">
		<div class="pull-right">
			<div class="input-append">
				<input type="text" placeholder="输入查询关键字" id="fuzzy-search">
				<div class="btn-group">
					<button type="button" class="btn btn-myself btn-sm" id="btn-search"><i class="fa fa-search"></i>查询</button>
				</div>
			</div>
		</div>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-add" content="添加" icon="fa fa-plus" permit="CODEADD"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-edit" content="修改" icon="fa fa-edit" permit="CODEEDIT"></b:buttons>
		<b:buttons type="button" cssclass="btn btn-myself" id="btn-del" content="删除" icon="fa fa-remove" permit="CODEELETE"></b:buttons>
	</div>
	
	<table id="datatable"   class="table table-bordered hover " border="0" width="100%" >
	  <thead>
	     <tr>
	     	 <th><input type="checkbox" name="cb-check-all"></th>
             <th>id</th>
             <th>编码</th>
             <th>名称</th>
             <th>操作</th>
         </tr>
	  <thead>
	  <tbody></tbody>
	</table>
	<div class="win_hidden_div">
		<div id="detail" iconCls="icon-save" title="类型">
			<div class="win_hidden_div">
				<div iconCls="icon-save" title="编辑 " id="fromDivDetail">
					<form id="formDetail" method="post">
						<input  type="hidden" name="id">
						<div data-options="region:'center',border:false" style="padding:10px;">
							<table>
								<tr>
									<td><label for="code">编码:</label></td>
									<td><input class="easyui-validatebox" type="text" name="code" required="true" id="formDivDetailCode"  readonly="true"></input></td>
								</tr>
								<tr>
									<td><label for="typeCode">类型编码:</label></td>
									<td><input class="easyui-validatebox" type="text" name="typeCode" required="true"></input></td>
								</tr>
								<tr>
									<td><label for="typeName">类型名称:</label></td>
									<td><input class="easyui-validatebox" type="text" name="typeName" required="true"></input></td>
								</tr>
							</table>
							</div>
							<div style="text-align:center;padding:5px;height:30px;">
								<input type="submit" class="btn btn-myself" value="提交" id="btn-add-save"></input>
							</div>
					</form>
				</div>
			</div>
			
			<div class="btn-toolbar">
				<div class="pull-right">
					<div class="input-append">
						<input type="text" placeholder="输入查询关键字" id="fuzzy-search-detail">
						<div class="btn-group">
							<button type="button" class="btn btn-myself btn-sm" id="btn-search-detail"><i class="fa fa-search"></i>查询</button>
						</div>
					</div>
				</div>
				<button type="button" class="btn btn-myself" id="btn-add-detail"><i class="fa fa-plus"></i> 添加</button>
				<button type="button" class="btn btn-myself" id="btn-del-detail"><i class="fa fa-remove"></i> 删除</button>
			</div>
			<table id="datatable-detail"   class="table table-bordered hover " border="0" width="100%" >
			  <thead>
			     <tr>
			     	 <th><input type="checkbox" name="cb-check-all"></th>
		             <th>id</th>
		             <th>编码</th>
		             <th>类型编码</th>
		             <th>类型名称</th>
		             <th>操作</th>
		         </tr>
			  <thead>
			  <tbody></tbody>
			</table>
		</div>
	</div>
</body>
</html>